Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-relative

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-relative

Returns `true` if the path appears to be relative.

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.9M
increased by0.43%
Maintainers
1
Weekly downloads
 
Created
Source

is-relative NPM version

Returns true if the path appears to be relative.

Install

Install with npm

$ npm i is-relative --save

Usage

var isRelative = require('is-relative');
isRelative('README.md');
//=> true

Other projects

  • is-absolute: Return true if a file path is absolute.
  • is-dotfile: Return true if a file path is (or has) a dotfile.
  • is-glob: Returns true if the given string looks like a glob pattern.
  • is-unc-path: Returns true if a filepath is a windows UNC file path.

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2014-2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on July 11, 2015.

Keywords

FAQs

Package last updated on 11 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc